package com.shiguiwu.springmybatis.designpattern.abstractfactory;

/**
 * @description: 测试
 * 定义：抽象工厂模式提供一个创建一系列相关或者相互依赖对象的接口
 * @author: stone
 * @date: Created by 2021/2/19 21:56
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.abstractfactory
 */
public class AbstractFactoryTests {

    public  static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        NoteBook noteBook = courseFactory.noteBook();
        Video video = courseFactory.video();
        noteBook.produce();
        video.produce();


        CourseFactory courseFactory1 = new PythonCourseFactory();
        NoteBook noteBook1 = courseFactory1.noteBook();
        Video video1 = courseFactory1.video();
        noteBook1.produce();
        video1.produce();
    }
}
